using NUnit.Framework;
using Tycho.Parser.Peg;

namespace Tycho.Parser.Tests.Peg {
    public static class ProductionAssertionExtensions {
        public static void AssertNotParsed (this IProduction production, string source) {
            Assert.That (() => { production.ParseTerm (source); }, Throws.TypeOf (typeof (SyntaxException)));
        }
    }
}